import request from '@/utils/request'

// 查询电影院信息列表
export function listCinema(query) {
  return request({
    url: '/cinema/cinema/cinema/list',
    method: 'get',
    params: query
  })
}

// 查询电影院信息详细
export function getCinema(cinemaId) {
  return request({
    url: '/cinema/cinema/cinema/' + cinemaId,
    method: 'get'
  })
}

// 新增电影院信息
export function addCinema(data) {
  return request({
    url: '/cinema/cinema/cinema',
    method: 'post',
    data: data
  })
}

// 修改电影院信息
export function updateCinema(data) {
  return request({
    url: '/cinema/cinema/cinema',
    method: 'put',
    data: data
  })
}

// 删除电影院信息
export function delCinema(cinemaId) {
  return request({
    url: '/cinema/cinema/cinema/' + cinemaId,
    method: 'delete'
  })
}

// 导出电影院信息
export function exportCinema(query) {
  return request({
    url: '/cinema/cinema/cinema/export',
    method: 'get',
    params: query
  })
}